﻿$(function () {
    $('#markdownSubmit').click(function () {
        var title = $('#txtSite').val();
        var url = $('#txtUrl').val();
        var content = $('#wmd-input').val();
        var data = { title: title, url: url, content: content };
        $.ajax({
            type: 'post',
            url: '/Administration/SaveMarkdown',
            data: data,
            success: function (data) {
                alert(data);
            }
        });
    });
});